import logging
logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)
logger.warning('Watch out!')  # will print a message to the console
logger.info('I told you so')  # will not print anything
